From your question, I understood that you need to create a trigger on 'transaction' table. When ever a record is inserted/updated/deleted to/in/from 'transaction' table, you want the latest sum against each 'headid' to be updated to 'Head' table. If so, try the below else put some more information on your problem..
CREATE TRIGGER [dbo].[trg_Transaction]
ON [dbo].[Transaction]
AFTER INSERT,DELETE,UPDATE
AS
BEGIN
UPDATE dbo.Head SET Total_Sum=(SELECT SUM(Amount) FROM dbo.[Transaction] WHERE Head.Id=[Transaction].HeadId GROUP BY HeadId)
END
GO
I have assumed that you already have an entry in 'Head' before inserting/deleteing/modifying records in 'Transaction'
If I am missing something, please let me know.